var stage = document.getElementById('stage');
var container = document.getElementById('container');
var curAngel = 0;

stage.addEventListener('click', handleStageClick, false);

function handleStageClick(e) {
    curAngel -= 40;
    container.style.transform = 'rotateY('+ curAngel +'deg)';
}